import React, { useState } from "react";

const App = () => {
  const [name, setName] = useState("xiaoming");
  return (
    <div>
      <div>{name}</div>
      <button onClick={() => setName("xiaozheng")}>改变名称</button>
    </div>
  );
};

export default App;
